<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.model.ManageGroup"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.action.ActionCreator"%>
<%@page import="com.shsh.safemanage.action.WriteProblemAction"%>

<%
{
WriteProblemAction theWriteProblemAction = ActionCreator.createWriteProblemAction();

List<ManageGroup> theGroupList = theWriteProblemAction.getWriterManageGroupList(request);
%>
<span style="margin-left: 40px" class="span1">通知管理组：</span>

<select id="manageGroupID" onchange="changeManageGroup()">
<option value="">-请选择管理组-</option>
<%
for (ManageGroup theGroup : theGroupList) {
%>
<option value="<%=theGroup.getId()%>"><%=theGroup.getManageGroupName()%></option>
<%
}
%>
</select>
<%
}
%>

<span id="manageGroupUserSpan">
<%@include file="managegroup_user_check_section.jsp" %>
</span>

<script type="text/javascript">
function changeManageGroup() {
	var manageGroupID = getElementValueByID('manageGroupID');
	loadPageSection('<%=request.getContextPath()%>/managegroup_select/managegroup_user_check_section.jsp', 'manageGroupUserSpan', {manageGroupID: manageGroupID}, true);
}
</script>
